package awk.designModel.adapter.interf;

import awk.designModel.adapter.DefaultAdapter;

//我的mac电源适配器只需要实现20V的方法即可
public class MacAdatper extends DefaultAdapter {

	private AC ac;

	public MacAdatper(AC ac){
		this.ac = ac;
	}

	@Override
	public int output20V() {
		return ac.outputAC()/11;
	}

	public static void main(String[] args) {
		MacAdatper adatper = new MacAdatper(new AC());
		System.out.println("mac电脑电压:" + adatper.output20V());
	}
}
